package com.mall507.comn.model;

import com.activeandroid.Model;
import com.activeandroid.annotation.Column;
import com.activeandroid.annotation.Table;

@Table(name = "User")
public class User extends Model {
    @Column(name = "userid")
    private String userid;// 用户ID
    @Column(name = "phone")
    private String phone;// 手机
    @Column(name = "acount")
    private String acount;// 帐号
    @Column(name = "password")
    private String password;// 密码
    @Column(name = "head")
    private String head;// 头像
    @Column(name = "loginType")
    private String loginType;//0为手机号码,1为微信,2为QQ,3为新浪
    @Column(name = "openId")
    private String openId;// 对应第三方平台登录的平台ID
    @Column(name = "nickName")
    private String nickName;//昵称
    @Column(name = "sex")
    private String sex;//性别
    @Column(name = "personalSign")
    private String personalSign;//个性签名

    @Column(name = "value")
    private String value;//招聘和求职是否显示  1显示  0隐藏

    public String getUserid() {
        return userid;
    }

    public User setUserid(String userid) {
        this.userid = userid;
        return this;
    }

    public String getPhone() {
        return phone;
    }

    public User setPhone(String phone) {
        this.phone = phone;
        return this;
    }

    public String getAcount() {
        return acount;
    }

    public User setAcount(String acount) {
        this.acount = acount;
        return this;
    }

    public String getPassword() {
        return password;
    }

    public User setPassword(String password) {
        this.password = password;
        return this;
    }

    public String getHead() {
        return head;
    }

    public User setHead(String head) {
        this.head = head;
        return this;
    }

    public String getLoginType() {
        return loginType;
    }

    public User setLoginType(String loginType) {
        this.loginType = loginType;
        return this;
    }
    public String getOpenId() {
        return openId;
    }

    public User setOpenId(String openId) {
        this.openId = openId;
        return this;
    }

    public String getNickName() {
        return nickName;
    }

    public User setNickName(String nickName) {
        this.nickName = nickName;
        return this;
    }

    public String getSex() {
        return sex;
    }

    public String getSexPacking() {
        if("0".equals(sex)){
            return "男";
        }else{
            return "女";
        }
    }

    public User setSex(String sex) {
        this.sex = sex;
        return this;
    }

    public String getPersonalSign() {
        return personalSign;
    }

    public User setPersonalSign(String personalSign) {
        this.personalSign = personalSign;
        return this;
    }

    public String getValue() {
        return value;
    }

    public User setValue(String value) {
        this.value = value;
        return this;
    }
}
